package cn.francis.chatplatform.modules.message.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author 张俊辉
 */

@TableName(value ="td_chat_message")
@Data
public class ChatMessage implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "session_id")
    private Long sessionId;

    /**
     * 
     */
    @TableField(value = "role")
    private Object role;

    /**
     * 
     */
    @TableField(value = "content")
    private String content;

    /**
     * 
     */
    @TableField(value = "token_count")
    private Integer tokenCount;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}